package com.kuang;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.NumberFormat;
import lombok.Data;

import java.util.Date;

@Data
public class DemoData {

    @ExcelProperty(value = "类型",index = 0)
    private String string;
    @ExcelProperty(value = "数据",index = 1)
    private Date date;
    @NumberFormat("#.##%")
    @ExcelProperty(value = "数字标题")
    private Double doubleData;
    @ExcelProperty(value = "序号",index = 3)
    private Integer no;
}